package com.bjx.api.flow.service.fallback;


import com.bjx.api.flow.domain.vo.FlowNodeVO;
import com.bjx.api.flow.domain.vo.FlowStartVO;
import com.bjx.api.flow.service.RemoteFlowService;
import com.bjx.common.core.domain.R;
import org.springframework.stereotype.Component;

/**
 * @desc: 远程流程降级处理类
 * @author: liushuai
 * @date: 2022/11/1 16:38
 */
@Component
public class RemoteFlowFallBack implements RemoteFlowService {


    @Override
    public R startFlow(FlowStartVO flowStartVO) {
        return R.fail("启动流程失败");
    }

    @Override
    public R<FlowNodeVO> selectFirstFlowNodeInfoByDefinitionId(String definitionId) {
        return R.fail("获取流程第一个用户节点失败");
    }

    @Override
    public R<FlowNodeVO> selectFirstFlowNodeInfoByDefinitionKey(String definitionKey) {
        return R.fail("获取流程第一个用户节点失败");
    }
}
